<?php

namespace Common\Models\Videos;

class VideoFileLink extends \Phalcon\Mvc\Model
{
	protected $video_id;

    protected $video_file_id;


    public function getSource()
    {
        return 'video_file_link';
    }

    public function initialize()
    {
        $this->setSource('video_file_link');

        $this->belongsTo('video_id','Common\Models\Videos\Video','id',array(
            'alias'     =>  'video'
        ));

        $this->belongsTo('video_file_id','Common\Models\Videos\VideoFile','id',array(
            'alias'     =>  'videoFile'
        ));
    }


    /**
     * @param mixed $video_file_id
     */
    public function setVideoFileId($video_file_id)
    {
        $this->video_file_id = $video_file_id;
    }

    /**
     * @return mixed
     */
    public function getVideoFileId()
    {
        return $this->video_file_id;
    }

    /**
     * @param mixed $video_id
     */
    public function setVideoId($video_id)
    {
        $this->video_id = $video_id;
    }

    /**
     * @return mixed
     */
    public function getVideoId()
    {
        return $this->video_id;
    }

}